var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
  return typeof e;
} : function (e) {
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
};

!function (e) {
  if ("object" == ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module) module.exports = e();else if ("function" == typeof define && define.amd) define([], e);else {
    ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).markdownitSup = e();
  }
}(function () {
  return function f(p, u, i) {
    function s(n, e) {
      if (!u[n]) {
        if (!p[n]) {
          var o = "function" == typeof require && require;
          if (!e && o) return o(n, !0);
          if (c) return c(n, !0);
          var r = new Error("Cannot find module '" + n + "'");
          throw r.code = "MODULE_NOT_FOUND", r;
        }

        var t = u[n] = {
          exports: {}
        };
        p[n][0].call(t.exports, function (e) {
          var o = p[n][1][e];
          return s(o || e);
        }, t, t.exports, f, p, u, i);
      }

      return u[n].exports;
    }

    for (var c = "function" == typeof require && require, e = 0; e < i.length; e++) s(i[e]);

    return s;
  }({
    1: [function (e, o) {
      function n(e, o) {
        var n,
            r,
            t = e.posMax,
            f = e.pos;
        if (94 !== e.src.charCodeAt(f)) return !1;
        if (o) return !1;
        if (t <= f + 2) return !1;

        for (e.pos = f + 1; e.pos < t;) {
          if (94 === e.src.charCodeAt(e.pos)) {
            n = !0;
            break;
          }

          e.md.inline.skipToken(e);
        }

        return n && f + 1 !== e.pos ? (r = e.src.slice(f + 1, e.pos)).match(/(^|[^\\])(\\\\)*\s/) ? (e.pos = f, !1) : (e.posMax = e.pos, e.pos = f + 1, e.push("sup_open", "sup", 1).markup = "^", e.push("text", "", 0).content = r.replace(p, "$1"), e.push("sup_close", "sup", -1).markup = "^", e.pos = e.posMax + 1, e.posMax = t, !0) : (e.pos = f, !1);
      }

      var p = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;

      o.exports = function (e) {
        e.inline.ruler.after("emphasis", "sup", n);
      };
    }, {}]
  }, {}, [1])(1);
});